<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ include file="/commons/global.jsp" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>My JSP 'saleReport.jsp' starting page</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
	<!-- 最新版本的 Bootstrap 核心 CSS 文件 -->
	<link rel="stylesheet" href="${staticPath }/static/bootstrap/bootstrap.min.css" />

	<!-- 可选的 Bootstrap 主题文件（一般不用引入） -->
	<link rel="stylesheet" href="${staticPath }/static/bootstrap/bootstrap-theme.min.css" />

  </head>
  
  <body>
  	<div style="width:50%;  margin: 0 auto;margin-top:25px"  >
  		<table class="table table-bordered">
  			<tr class="info">
  				<td class="col-md-3 col-3 text-center">商品品牌</td>
  				<td class="col-md-3 col-3 text-center">订单数量</td>
  				<td class="col-md-3 col-3 text-center">Sku数量</td>
  				<td class="col-md-3 col-3 text-center">销售额</td>
  			</tr>
	  		<c:if test="${saleList==null || fn:length(saleList) == 0}">  
				<tr>  
		  		<td colspan="4">还没有人购买过该商品，快来抢购吧！</td>  
				</tr>  
				</c:if>  
				<c:forEach items="${saleList}" var="saleList" varStatus="status">  
		 		<tr >  
		    	<td>${saleList.dimensionCategoryName}</td>  
		    	<td>${saleList.statisticOrderQuantity}</td>  
		    	<td>${saleList.statisticSkuQuantity}</td>  
		    	<td>${saleList.statisticPrice}</td>  
		  		</tr>  
			</c:forEach>
		</table>  
  	</body>
 	 </div>
</html>
